//
//  RKAddressListCell.m
//  runkang
//
//  Created by 张艳江 on 2018/8/22.
//  Copyright © 2018年 张艳江. All rights reserved.
//

#import "SCAddressListCell.h"

@implementation SCAddressListCell

- (void)setModel:(SCModel *)model{
    
    _model = model;
    self.nameLab.text = [NSString stringWithFormat:@"%@",model.name];
    self.phoneLab.text = model.phone;
    self.addressLab.text = [NSString stringWithFormat:@"%@%@",model.adress,model.detail];
    //NSLog(@"----%@",model.is_def);
    if ([model.is_def intValue] == 1) {
        self.defaultLab.hidden = NO;
        self.setDefaultBtn.hidden = YES;
    }else{
        self.defaultLab.hidden = YES;
        self.setDefaultBtn.hidden = NO;
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
